<template>
  <div>
    <ClassContent  class="class-info" :statusList="classStatusList"  :buttons="buttonsInfo"/>
    <ScoreSet :dialogFormVisible="dialogFormVisible" @closeFormVisible="closeFormVisible"></ScoreSet>
  </div>
</template>

<script setup>
import ScoreSet from "@/components/class/score/ScoreSet"
import {ref} from "vue";
import ClassContent from "@/components/common/class/ClassContent.vue";


// 设置分数弹窗
const dialogFormVisible = ref(false);
const toggleDialog = () => {
  dialogFormVisible.value = true;
};

const closeFormVisible = ()=>{
  dialogFormVisible.value = false;
}


const buttonsInfo = ref([
  { text: '编辑', onClick: toggleDialog},
  { text: '查看', onClick: toggleDialog}
]);
const classStatusList = [1,2,3]


</script>

<style scoped lang="less">

</style>